package com.study.controller;

import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author biandan
 * @description
 * @signature 让天下没有难写的代码
 * @create 2021-06-16 下午 7:34
 */
@RequestMapping("/")
public class MyController extends JbootController {

    SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public void index() {
        String msg = "44If you can see this page, you've succeeded！！";
        renderText(msg + "22222222222442222现在是北京时间：" + SDF.format(new Date()));
    }

}
